This repository was archived by the owner on Nov 3, 2026. It is now read-only.
Repository navigation
feat: name repos by their path from the workspace root - #13
Merged
Merged
Conversation
Progress and result lines named each repo by its basename, so two repos called agent looked the same and nested repos didn't say where they live. They now show ./open-source/meta/loop_cli, relative to the root (still shown as '. (harmony)'), and results sort by that path. Implements [[tasks/harmony-2712]]
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Comment |
A repo outside the workspace root (an absolute path in .meta) fell back to its basename, which can be ambiguous again. Show its full path instead. Implements [[tasks/harmony-2712]]
This was referenced Oct 23, 2026
Comparing displayed paths as strings put ./open-source/gitkb-bench between ./open-source/gitkb and ./open-source/gitkb/core, since '-' sorts before '/'. Compare them as paths so nested repos stay under their parent. Implements [[tasks/harmony-2712]]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
meta git pull,meta git statusand every other command that runs through loop_lib named each repo by its basename. In harmony (98 repos)agentappears twice and nested repos likeloop_clidon't say where they live. Now progress lines, result headers and the failure summary all name a repo by its path from the workspace root:The root stays
.(results:. (harmony)). Parallel results now sort by that path, so nested repos sit under their parent instead of being mixed in by basename.Path form: paths start at the root (
./open-source/meta/loop_cli), not at the root folder's name (./harmony/open-source/...). The root line already names the folder (. (harmony)), and a path that starts at the root can be pasted intocdfrom where you ranmeta. gitkb/meta_git_cli#30 and gitkb/meta_cli#37 give worktree commands the same naming; gitkb/meta_project_cli#17 (same task) puts remote URLs inmeta project list.One helper (
display_name, plusresult_namefor the. (harmony)form) replaces four copies of the basename logic, and removes anunwrap()on the "No directory found" path.A repo outside the root (an absolute path in
.meta) shows its full path, so it can't collide either.JSON: every field is unchanged (
directoryis still the full path). One deliberate change: in parallel mode theresultsarray now follows the same path order as the text output (root first, then by path; before: root first, then by basename, soagent, agent, analytics, ...became./clients, ./clients/analytics, ...). Sequential mode never sorted, so array order was never a stable contract. The only consumer in harmony, meta_mcp'stool_git_status, finds results by field, not position, so no consumer needs updating.Unchanged: a caller that passes no
root_dirkeeps basenames, as before, and its failure summary keeps the full path. Two such callers weremeta git worktree execandmeta execinside a worktree; gitkb/meta_git_cli#30 and gitkb/meta_cli#37 now pass the worktree as the root, so they match. The standaloneloopCLI still passes none.Before / after
meta git status --recursivein harmony (read-only), result headers:Before:
After:
Failure summary, before → after:
meta git pull --recursivein a scratch workspace (two repos namedagent, one nested;scratchhas no remote). Progress lines mid-run:Before:
After:
Results, after:
Verification
cargo test -p loop_lib(newtest_display_name_is_path_from_root), clippy-D warnings, fmt.meta+ plugins against this branch and ran the commands above.Implements [[tasks/harmony-2712]]